﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace UI_Layer.Pages
{
    /// <summary>
    /// Interaction logic for PaymentOptions.xaml
    /// </summary>
    public partial class PaymentOptions : Page
    {
        public PaymentOptions()
        {
            InitializeComponent();
            DispatcherTimer timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, delegate
            {
                this.PaymentOptionsPage_Clock.Content = DateTime.Now.ToString("HH:mm:ss");
            }, this.Dispatcher); 
        }

        private void ButtonClick_CreditCard(object sender, RoutedEventArgs e)
        {
            CreditCardPay creditcardpay = new CreditCardPay();
            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(creditcardpay);

        }

        private void ButtonClick_Account(object sender, RoutedEventArgs e)
        {
            AccountPay accountpay = new AccountPay();
            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(accountpay);
        }

        private void ButtonClick_Cash(object sender, RoutedEventArgs e)
        {
            CashPay cashpay = new CashPay();
            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(cashpay);
        }

        private void ButtonClick_GoBack(object sender, RoutedEventArgs e)
        {
            NavigationService.GoBack();
        }
    }
}
